﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;


public partial class EditCommentMovie : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_submit_Click(object sender, EventArgs e)
    {
        MembershipUser user = Membership.GetUser();

        if (user != null)
        {
            DVDTableAdapters.CommentTableAdapter ta = new DVDTableAdapters.CommentTableAdapter();
            ta.UpdateComment(txt_comment.Text,Convert.ToInt32(FormView1.DataKey.Value),(Guid)user.ProviderUserKey);

        }
    }
}